﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    public interface IUserService
    {
		/// <summary>
		/// 获取用户信息
		/// </summary>
		/// <returns>获取用户信息</returns>
		List<Userinfo> GetUsers();
		/// <summary>
		/// 登录
		/// </summary>
		/// <param name="UserName">用户名</param>
		/// <param name="PassWord">密码</param>
		/// <returns>返回登录信息</returns>

        Userinfo Login(string UserName, string PassWord);
		/// <summary>
		/// 新增人员信息
		/// </summary>
		/// <param name="info">人员信息</param>
		/// <returns></returns>
		Task<int> AddUser(AddUserInput input);
    }
}
